﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ChildAdd.aspx.cs" Inherits="WEB.customer.ChildAdd" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server"> 
    <title></title>
    <base target="_self" />
    <link rel="stylesheet" href="../images/skin.css" />
    <script>
        function AddValue() {
            var res = document.getElementById("tbCusName").value;
            if (window.opener != undefined) {
                //for chrome
                window.opener.returnValue = res;
            }
            else {
                window.returnValue = res;
            }
            window.close();
        }
        </script>
</head>
<body>
    <form id="form1" runat="server">
    <table width="100%">
        <tr>
            <td align="center">
                <table style="width: 550px; height:400px;" class="distance" cellpadding="4" 
                    cellspacing="4">
                <tr><td colspan="4" align="left" style=" background-color:#0099cc; font-size:large">
                    增加客户</td></tr>
                    <tr>
                        <td class="style1" align="right">
                            报检代码：
                        </td>
                        <td class="style3" align="left">
                            <asp:TextBox ID="tbCusNo" runat="server" MaxLength="20"></asp:TextBox>
                        </td>
                        <td class="style2" align="right">
                            客户名：
                        </td>
                        <td align="left">
                            <asp:TextBox ID="tbCusName" runat="server" MaxLength="50"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style1" align="right">
                            税务识别号：
                        </td>
                        <td class="style3" align="left">
                            <asp:TextBox ID="tbTaxNo" runat="server" MaxLength="20"></asp:TextBox>
                        </td>
                        <td class="style2" align="right">
                            简称：
                        </td>
                        <td align="left">
                            <asp:TextBox ID="tbAbb" runat="server" MaxLength="15"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style4" align="right">
                            &nbsp;发票抬头：
                        </td>
                        <td class="style5" align="left">
                            <asp:TextBox ID="tbInv" runat="server" MaxLength="20"></asp:TextBox>
                        </td>
                        <td class="style6" align="right">
                            发票类型：
                        </td>
                        <td class="style7" align="left">
                            <asp:DropDownList ID="ddlInvtype" runat="server" Width="100px">
                                <asp:ListItem Value="-1">--请选择--</asp:ListItem>
                                <asp:ListItem Value="1">普通发票</asp:ListItem>
                                <asp:ListItem Value="2">专用发票</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td class="style1" align="right">
                            邮编：
                        </td>
                        <td class="style3" align="left">
                            <asp:TextBox ID="tbCode" runat="server" MaxLength="30"></asp:TextBox>
                        </td>
                        <td class="style2" align="right">
                            客户类型：
                        </td>
                        <td align="left">
                            <asp:DropDownList ID="ddlCustomerType" runat="server" Width="100px">
                                <asp:ListItem Value="-1">--请选择--</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td class="style1" align="right">
                            &nbsp; 工作要求：
                        </td>
                        <td class="style3" align="left">
                            <asp:TextBox ID="tbMark" runat="server" Width="151px" TextMode="MultiLine" Height="194px"
                                MaxLength="1000"></asp:TextBox>
                        </td>
                        <td class="style2" align="right">
                            地址：
                        </td>
                        <td align="left">
                            <asp:TextBox ID="tbAddr" runat="server" TextMode="MultiLine" Height="194px" Width="151px"
                                MaxLength="50"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style1" align="right">
                            &nbsp;
                        </td>
                        <td align="center">
                            <asp:Button ID="Button1" runat="server" onclick="btnEdit_Click" Text="保存数据" 
                                CssClass="Submit_yellowbig" />
                            </td>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            <input id="btres" type="button" value="完成添加"  onclick="AddValue()"  
                                Class="Submit_yellowbig" /></td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
